
import 'package:fluent_ui/fluent_ui.dart';

import '../gyy_theme.dart';


class MenuLayout extends StatefulWidget {
  const MenuLayout({Key? key}) : super(key: key);

  @override
  State<MenuLayout> createState() => _MaterialState();
}

class _MaterialState extends State<MenuLayout> {
  bool checked1 = false;
  bool checked2 = false;
  bool checked3 = false;
  bool checked4 = false;

  @override
  void dispose() {
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return UnconstrainedBox(
      child:  Container(
        width: 260,
        height: 90,
        child:  GridView.count(
          crossAxisCount: 3,
          childAspectRatio: 3,
          children: <Widget>[
            GyyToggleButton(
              '特殊材料',
              checked4,
                  (v) {
                checked4 = v;
                setState(() {});
              },
            ),
            GyyToggleButton(
              '特殊材料',
              checked4,
                  (v) {
                checked4 = v;
                setState(() {});
              },
            ),
            GyyToggleButton(
              '特殊材料',
              checked4,
                  (v) {
                checked4 = v;
                setState(() {});
              },
            ),
            GyyToggleButton(
              '特殊材料',
              checked4,
                  (v) {
                checked4 = v;
                setState(() {});
              },
            ),
            GyyToggleButton(
              '特殊材料',
              checked4,
                  (v) {
                checked4 = v;
                setState(() {});
              },
            ),
            GyyToggleButton(
              '特殊材料',
              checked4,
                  (v) {
                checked4 = v;
                setState(() {});
              },
            ),
            GyyToggleButton(
              '特殊材料',
              checked4,
                  (v) {
                checked4 = v;
                setState(() {});
              },
            ),
            GyyToggleButton(
              '特殊材料',
              checked4,
                  (v) {
                checked4 = v;
                setState(() {});
              },
            ),
            GyyToggleButton(
              '特殊材料',
              checked4,
                  (v) {
                checked4 = v;
                setState(() {});
              },
            ),
          ],
        ),
      ),
    );
  }
}
